﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Xml.Serialization;
using System.Runtime.Serialization;

namespace imeem.library
{
    /// <summary>
    /// 
    /// </summary>
    [XmlRoot("item")]
    public class MusicData : ContentData
    {
        private string _artist;
        private string _album;
        private string _genre;
        private int _duration;
        private bool _isSample;
        private string _iconUrl;
        private string _musicEmbedUrl;

        /// <summary>
        /// 
        /// </summary>
        [XmlElement("artist")]
        public string Artist
        {
            get { return _artist; }
            set { _artist = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [XmlElement("album")]
        public string Album
        {
            get { return _album; }
            set { _album = value; }
        }

        [XmlElement("genre")]
        public string Genre
        {
            get { return _genre; }
            set { _genre = value; }
        }

        [XmlElement("duration")]
        public int Duration
        {
            get { return _duration; }
            set { _duration = value; }
        }

        [XmlElement("isSample")]
        public bool IsSample
        {
            get { return _isSample; }
            set { _isSample = value; }
        }

        [XmlElement("iconUrl")]
        public string IronUrl
        {
            get { return _iconUrl; }
            set { _iconUrl = value; }
        }

        [XmlElement("musicEmbedUrl")]
        public string EmbedUrl
        {
            get { return _musicEmbedUrl; }
            set { _musicEmbedUrl = value; }
        }
    }
}
